import React, { memo } from 'react'
import { PageWrapper } from './style'
import { Pagination } from 'antd'
export default memo(function Page(props) {
  const {totalCount,pageSize,pageChange} = props
  return (
    <PageWrapper>
       <Pagination defaultCurrent={1}
        total={totalCount}
        showSizeChanger={false}
        pageSize={pageSize}
        onChange={pageChange}
        className='pagination'/>
    </PageWrapper>
  )
})
